﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Mes.Pendant.PermissionService.Dto;
using Volo.Abp.Application.Services;

namespace Mes.Pendant.PermissionService
{
    public interface IPermissionServices : IApplicationService
    {
        /// <summary>
        /// 获取权限数据
        /// </summary>
        /// <param name="permissionName"></param>
        /// <param name="index"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        Task<PagedResult> GetPermissionList(string? permissionName, int index = 1, int limit = 10);

        /// <summary>
        /// 添加权限数据
        /// </summary>
        /// <param name="addPermissiondto"></param>
        /// <returns></returns>
        Task<int> AddPermissions(AddPermissiondto addPermissiondto);
        /// <summary>
        /// 通过id获取权限数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
          Task<PermissionListDto> SelectByidPerm(int id);

        /// <summary>
        /// 修改权限数据
        /// </summary>
        /// <param name="updatePermissiondto"></param>
        /// <returns></returns>
          Task<int> UpdatePermissions(AddPermissiondto updatePermissiondto);

        /// <summary>
        /// 启用停用按钮
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
          Task<int> EditStates(int id);
    }
}
